
<%@ page 

import="java.util.Vector,
                                    com.epro.standard.frontend.util.FileInfoUtil,                                  
                                    com.softplus.carrefour.hd.CFHDSystem,
                                    com.softplus.carrefour.CFException,
                                    
                                                                          
                                    com.softplus.carrefour.hd.bltier.report.ICaseReportViewer,
                                     com.softplus.carrefour.hd.bltier.report.CCaseReportManage,                                   
                                    com.softplus.carrefour.hd.bltier.entity.CfhdCaseHead,
                                                                        
                                    com.epro.standard.frontend.datasetup.MessageManager,
                                    com.softplus.carrefour.hd.bltier.entity.Country,
                                    com.softplus.carrefour.hd.bltier.entity.UserAccount,
                                    com.softplus.carrefour.hd.bltier.admin.UserLevelManage,
                                    
                                    com.epro.standard.frontend.util.ShowData,
                                    com.softplus.carrefour.hd.bltier.admin.CountryManage,
                                    com.softplus.carrefour.hd.bltier.admin.ICountryViewer,
                                    java.text.SimpleDateFormat,
                                    java.util.Locale,
                                    java.util.Date,               
  										com.softplus.carrefour.hd.bltier.util.DateUtil
                                       " %>
  <%@ include file="../include/eproFileInfo.jsp" %>
     <%@include file="../include/spUserVOInclude.jsp"%>
  <%
  System.out.println("+++++++++++++++++++++++++++++++++Begin CFHDRPRP01.jsp+++++++++++++++++++++++++++");
  //========= Variable of System=========
  	ShowData showData 	= new ShowData();
  	        //Current Date
        Date d = new Date();
        SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy", Locale.US);    
        
 		UserAccount					userVO2					=  (UserAccount) session.getAttribute("userVO");//"kunlaporn_c";
		String								userID					= userVO2.getUserId();//request.getParameter("uid");
        
 	
  //==========1 Set Layout=============
  	String[] 	dataWidth 					=	{"200","240","100","80","80"}; // ???????????? =  (masterWidth+50)
String sumdataWidth="550";
System.out.println("*****noom****************sumdataWidth="+sumdataWidth);
 //==========2 Receive Parameter============= 	
 // String          caseType        =   request.getParameter("caseType")!=null?request.getParameter("caseType"):"all";
  String   countrySelected =  request.getParameter("Country")!=null?request.getParameter("Country"):"66";
  
  String   P1         =  request.getParameter("P1")!=null?request.getParameter("P1"):"false";
  String   P2         =  request.getParameter("P2")!=null?request.getParameter("P2"):"false";
  String   P3         =  request.getParameter("P3")!=null?request.getParameter("P3"):"false";
  String   P4         =  request.getParameter("P4")!=null?request.getParameter("P4"):"false";  
  
 String Validated     =  request.getParameter("Validated")!=null?request.getParameter("Validated"):"'false'";
 String Close     =  request.getParameter("Close")!=null?request.getParameter("Close"):"'false'";
  String Submitted     =  request.getParameter("Submitted")!=null?request.getParameter("Submitted"):"'false'";
  String Rejected     =  request.getParameter("Rejected")!=null?request.getParameter("Rejected"):"'false'";
  String Finished     =  request.getParameter("Finished")!=null?request.getParameter("Finished"):"'false'";
  String Cancelled     =  request.getParameter("Cancelled")!=null?request.getParameter("Cancelled"):"'false'";
  String Approved     =  request.getParameter("Approved")!=null?request.getParameter("Approved"):"'false'";
 String Unattended     =  request.getParameter("Unattended")!=null?request.getParameter("Unattended"):"'false'";

 String From     =  request.getParameter("From")!=null?request.getParameter("From"):"01/01/2000''";
  String To     =  request.getParameter("To")!=null?request.getParameter("To"):"'01/01/2100'";

                
 
   
   int sumGrandTotal=0;  
//============== 3 define object ===================
 	ICaseReportViewer		reportManage	=	(CCaseReportManage)CFHDSystem.getControlClass("CASE_REPORT");
    ICountryViewer  countryManage  = ( ICountryViewer)CFHDSystem.getControlClass("COUNTRY");
    
    String  countryName= "";
    Vector countryVector=null;
       if(countrySelected.equals("ALL")){
         countryName= "All";
        countryVector=  countryManage.getAllCountry();       
System.out.println("*****countryManage.getAllCountry().size()===****************"+countryVector.size());
         }
      else{  countryName=   countryManage.getCountry(countrySelected).getCountryName();
                countryVector=new Vector();   countryVector.add(countryManage.getCountry(countrySelected));
         }
    
     
     
 //=======================Case Type======================
 
                String ShowCase = "";
                if(P1.equals("true"))
                {
                         ShowCase = ShowCase + "User Question (P1)" + ",";
                }
                if(P2.equals("true"))
                {
                        ShowCase = ShowCase + "Problem Report (P2)" + ",";
                }
                if(P3.equals("true"))
                {
                         ShowCase = ShowCase + "Change Request (P3)" + ",";
                }
                if(P4.equals("true"))
                {
                         ShowCase = ShowCase + "Change Request (P4)" + ",";
                }
                if( (P1.equals("true")) || (P2.equals("true")) || (P3.equals("true"))|| (P4.equals("true")))
                { 
                 ShowCase = ShowCase.substring(0,ShowCase.length()-1);
                }
     System.out.println("*****noom****************ShowCase="+ShowCase);
      //====================Status=========================
 
                String Status =  "";
                String ShowStatus = "";
 
 
                if(Validated.equals("true"))
                {        Status = Status + "'" +CfhdCaseHead.STATUS_VALIDATED+"'"+ ",";  
                         ShowStatus = ShowStatus + "Validated" + ",";
                }
                if(Submitted.equals("true"))
                {       Status = Status + "'" +CfhdCaseHead.STATUS_SUBMITTED+"'"+ ",";  
                        ShowStatus = ShowStatus + "Submitted" + ",";
                }
                if(Finished.equals("true"))
                {       Status = Status + "'" +CfhdCaseHead.STATUS_FINISH+"'"+ ",";  
                         ShowStatus = ShowStatus + "Finished" + ",";
                }
               if(Approved.equals("true"))
                {       Status = Status + "'" +CfhdCaseHead.STATUS_APPROVE+"'"+ ",";  
                         ShowStatus = ShowStatus + "Approved" + ",";
                }
                if(Close.equals("true"))
                {       Status = Status + "'" +CfhdCaseHead.STATUS_CLOSE+"'"+ ",";  
                        ShowStatus = ShowStatus + "Close" + ",";
                }
                if(Rejected.equals("true"))
                {       Status = Status + "'" +CfhdCaseHead.STATUS_REJECTED+"'"+ ",";  
                         ShowStatus = ShowStatus + "Rejected" + ",";
                }
                if(Cancelled.equals("true"))
                {       Status = Status + "'" +CfhdCaseHead.STATUS_CANCEL+"'"+ ",";  
                         ShowStatus = ShowStatus + "Cancelled" + ",";
                }
               if(Unattended.equals("true"))
                {       Status = Status + "'" +CfhdCaseHead.STATUS_UNATTEND+"'"+ ",";  
                         ShowStatus = ShowStatus + "Unattended" + ",";
                }
                if( (Validated.equals("true")) || (Submitted.equals("true")) || (Finished.equals("true")) || (Approved.equals("true")) || 
                    (Close.equals("true")) || (Rejected.equals("true")) || (Cancelled.equals("true")) || (Unattended.equals("true")) )
                { Status = Status.substring(0,Status.length()-1);
                 ShowStatus = ShowStatus.substring(0,ShowStatus.length()-1);
                }
     System.out.println("*****Status****************Status="+Status);
    System.out.println("*****ShowStatus****************ShowStatus="+ShowStatus);
     
     
     
%>



<html>
  <head>
    <title>List of Cases by Type and Status</title>
          <script src="../script/spToolbar.js" type="text/javascript"></script>
          <link rel="stylesheet" href="../theme/CFHDReportTheme.css" />
          <link rel="stylesheet" href="../theme/defaultTheme.css" />
          <link rel="stylesheet" href="../theme/CFRLTheme.css" />

</head>
  <body >
  	&nbsp;&nbsp;&nbsp;<a href="CFHDRPMT01.jsp">
		<img alt="Back to view all cases" src="../images/icon/toolbar/nBackToMenu.gif" width="21" height="21" border="0" onmouseout="imgOut(this)" onmouseover="imgOver(this)" /></a>
  

  <table width="750"  border="0" cellspacing="0" cellpadding="0" style="margin-left:3px;" bordercolor="green">
  <tr>
    <td align="center">
     <span class="Header"> E-Helpdesk</span>
         <span class="Header">List of Cases by Type and Status</span>
     </td>
  </tr>
  <!-----------------------------------Title----------------------------------------------->
<tr>
<td>
   <%
     %>
      <span class="viewCaseHeader"  style="text-align: right;"> Created Date : <%=new SimpleDateFormat("dd/MM/yyyy HH:mm").format(DateUtil.getLocalDate(userID))%> </span>
     <span class="viewCaseHeader"> Country : <%=countryName%> </span>
      <span class="viewCaseHeader"> Case Type  :   <%=ShowCase%>
      </span>
      <span class="viewCaseHeader"> Status : <%=ShowStatus%> </span>
       <span class="viewCaseHeader"> Open Case Date From : <%=From%> To :  <%=To%> </span>
 
</td>
</tr> 
 <!-----------------------------------Header Cloumn----------------------------------------------> 
 <tr>
 <td >

 									<div align="center" id="masterZone" style="overflow-x: auto; overflow-y: hidden;">
									<table style="display: block;" cellspacing="0" cellpadding="0" align="left" width="100%" bgcolor="darkorange" border="0" bordercolor="red">
									<tr> 
											<td bgcolor="darkorange" class="titleFont" style="text-align: center; color: white;" width="230<%//=dataWidth[0]%>">Case ID</td>
											<td bgcolor="darkorange" class="titleFont" style="text-align: center; color: white;" width="210<%//=dataWidth[1]%>">Subject</td>
											<td bgcolor="darkorange" class="titleFont" style="text-align: right;   color: white;"      width="120<%//=dataWidth[2]%>">Open Case Date</td>
											<td bgcolor="darkorange" class="titleFont" style="text-align: center; color: white;" 	width="80<%//=dataWidth[3]%>">Status</td>
											<td bgcolor="darkorange" class="titleFont" style="text-align: center; color: white;"      width="110<%//=dataWidth[4]%>">Severity</td>
									</tr>
									</table>
									</div>
  </td>
  </tr>
 <!----------------------------------- /Header Cloumn----------------------------------------------> 
   <tr >
    <td align="center">
    									<DIV id="ReportMasterDiv"    >
									<FORM name="ReportMasterForm" style="border-color: red;border: 1px; ">
    
<%

  
//=================================================FOR==========================================================
   
     for(int k=0;k<countryVector.size();k++){
        int sumTotalbyCountry=0;  
            Country          countryEntity        =(Country) countryVector.elementAt(k);
                                   countrySelected  =   countryEntity.getCountryId();
                                   countryName       =   countryEntity.getCountryName();
 System.out.println("*****countryName===****************"+countryName);
System.out.println("*!!!!****countryEntity===****************"+countryEntity);

System.out.println("*!!!!****countrySelected===****************"+countrySelected);
%>    
<table border="0" bordercolor="pink" cellpadding="0" cellspacing="0">
<tr>
  <td>
     <span class="viewCaseHeader"> Country : <%=countryName%> </span>
   </td>  
</tr> 
 <tr>
  <td>
  <%
        try{
  //===================================P1=================================================      
      System.out.println("*****noom****************P1="+P1);
                   if(P1.equals("true")){ 
                         Vector    dataVec = reportManage.listCaseByTypeAndStatus(countrySelected,CfhdCaseHead.CASE_USER_QUESTION,Status,format.parse(From),format.parse(To));
         System.out.println("!!!!!!!!!@@@@@@@@@@########"+dataVec);                
                          sumTotalbyCountry=sumTotalbyCountry+dataVec.size();
  %>
  <table  border="0" cellpadding="0"  cellspacing="0" bordercolor="blue" width="730">
      <tr>  <td colspan="5" class="TotalByCaseTyephaveline"> <span> Case Type : User Question (P1) </span> </td>  </tr>
     <%   
    if (dataVec.size()==0){
    %>
    <tr >
    <td width="<%=dataWidth[0]%>">&nbsp; </td>
     <td  width="<%=dataWidth[1]%>">&nbsp; </td>
    <td width="<%=dataWidth[2]%>">&nbsp; </td>
    <td width="<%=dataWidth[3]%>">&nbsp; </td>
    <td width="<%=dataWidth[4]%>" >&nbsp; </td>
    </tr>
    <%
    }
    else{
     for(int i=0;i<dataVec.size();i++){
            CfhdCaseHead          caseheadEntity        =(CfhdCaseHead) dataVec.elementAt(i);
       %>
        <tr>
           <td class="resultFont" width="<%=dataWidth[0]%>"><%=showData.CheckNull(caseheadEntity.getCaseId())%></td>
           <td class="resultFont" width="<%=dataWidth[1]%>"><%=showData.CheckNull(caseheadEntity.getSubject())%></td>
           <td class="resultFont" width="<%=dataWidth[2]%>"><%=showData.CheckNull(caseheadEntity.getOpenCaseDate(),"dd/MM/yy")%></td>
           <td class="resultFont" width="<%=dataWidth[3]%>"><%= CfhdCaseHead.getStatusDesc(caseheadEntity.getCaseStatus())%></td>
           <td class="resultFont" width="<%=dataWidth[4]%>"><%=showData.CheckNull(CfhdCaseHead.getServerityDesc(caseheadEntity.getSeverity().toString()))%></td>
     </tr>         
         <%  }//end for
               }//end else
         %>     
       <tr> <td colspan="2"style="border-top: 2px solid #FF8C00;  ">&nbsp;</td>
        <td colspan="3"style="border-top: 2px solid #FF8C00; text-align: right;" align="right">  
                 <table border="0" align="center" width="80%"  cellpadding="0" cellspacing="0">
                 <tr > <td nowrap="nowrap" width="*" class="TotalByCaseTyephaveline">Total by Case Type </td><td nowrap="nowrap" width="10"  class="TotalByCaseTyephaveline"><%=dataVec.size()%></td><td nowrap="nowrap" width="20" class="TotalByCaseTyephaveline"> Cases</td> </tr>
                 </table>   </td>  </tr>
</table>
 
<% 
                       
      } //end   if(P1.equals("true"))
   //==================================P2================================================      
    
        if(P2.equals("true")){
          Vector    dataVec = reportManage.listCaseByTypeAndStatus(countrySelected,CfhdCaseHead.CASE_PROBLEM_REPORT,Status,format.parse(From),format.parse(To));
                          sumTotalbyCountry=sumTotalbyCountry+dataVec.size();
 %>
<table border="0" cellpadding="0"  cellspacing="0" bordercolor="purple" width="730">
      <tr>  <td colspan="5" class="TotalByCaseTyephaveline"> <span> Case Type : Problem Report  (P2) </span> </td>  </tr>
     <%   
    if (dataVec.size()==0){
    %>
    <tr >
    <td width="<%=dataWidth[0]%>">&nbsp; </td>
    <td width="<%=dataWidth[1]%>">&nbsp; </td>
    <td width="<%=dataWidth[2]%>">&nbsp; </td>
    <td width="<%=dataWidth[3]%>">&nbsp; </td>
    <td width="<%=dataWidth[4]%>" >&nbsp; </td>
    </tr>
    <%
    }
    else{
     for(int i=0;i<dataVec.size();i++){
            CfhdCaseHead          caseheadEntity        =(CfhdCaseHead) dataVec.elementAt(i);
       %>
        <tr>
           <td class="resultFont" width="<%=dataWidth[0]%>"><%=showData.CheckNull(caseheadEntity.getCaseId())%></td>
           <td class="resultFont" width="<%=dataWidth[1]%>"><%=showData.CheckNull(caseheadEntity.getSubject())%></td>
           <td class="resultFont" width="<%=dataWidth[2]%>"><%=showData.CheckNull(caseheadEntity.getOpenCaseDate(),"dd/MM/yy")%></td>
           <td class="resultFont" width="<%=dataWidth[3]%>"><%= CfhdCaseHead.getStatusDesc(caseheadEntity.getCaseStatus())%></td>
           <td class="resultFont" width="<%=dataWidth[4]%>"><%=showData.CheckNull(CfhdCaseHead.getServerityDesc(caseheadEntity.getSeverity().toString()))%></td>
     </tr>         
         <%  }//end for
               }//end else
         %>     
       <tr> <td colspan="2"style="border-top: 2px solid #FF8C00;  ">&nbsp;</td>
        <td colspan="3"style="border-top: 2px solid #FF8C00; text-align: right;" align="right">  
                 <table border="0" align="center" width="80%"  cellpadding="0" cellspacing="0">
                 <tr > <td nowrap="nowrap" width="*" class="TotalByCaseTyephaveline">Total by Case Type </td><td nowrap="nowrap" width="10"  class="TotalByCaseTyephaveline"><%=dataVec.size()%></td><td nowrap="nowrap" width="20" class="TotalByCaseTyephaveline"> Cases</td> </tr>
                 </table>   </td>  </tr>
</table>
    
<%
      } //end   if(P2.equals("true"))
  //===================================P3==================================================      
    
        if(P3.equals("true")){
                         Vector    dataVec = reportManage.listCaseByTypeAndStatus(countrySelected,CfhdCaseHead.CASE_CHANGE_REQUEST,Status,format.parse(From),format.parse(To));
                          sumTotalbyCountry=sumTotalbyCountry+dataVec.size();
 %>
<table border="0" cellpadding="0"  cellspacing="0" bordercolor="yellow" width="730">
      <tr>  <td colspan="5" class="TotalByCaseTyephaveline"> <span> Case Type : Change Request (P3) </span> </td>  </tr>
    <%   
    if (dataVec.size()==0){
    %>
    <tr >
    <td width="<%=dataWidth[0]%>">&nbsp; </td>
    <td width="<%=dataWidth[1]%>">&nbsp; </td>
    <td width="<%=dataWidth[2]%>">&nbsp; </td>
    <td width="<%=dataWidth[3]%>">&nbsp; </td>
    <td width="<%=dataWidth[4]%>">&nbsp; </td>
    </tr>
    <%
    }
    else{
     for(int i=0;i<dataVec.size();i++){
            CfhdCaseHead          caseheadEntity        =(CfhdCaseHead) dataVec.elementAt(i);
       %>
        <tr>
           <td class="resultFont" width="<%=dataWidth[0]%>"><%=showData.CheckNull(caseheadEntity.getCaseId())%></td>
           <td class="resultFont" width="<%=dataWidth[1]%>"><%=showData.CheckNull(caseheadEntity.getSubject())%></td>
           <td class="resultFont" width="<%=dataWidth[2]%>"><%=showData.CheckNull(caseheadEntity.getOpenCaseDate(),"dd/MM/yy")%></td>
           <td class="resultFont" width="<%=dataWidth[3]%>"><%= CfhdCaseHead.getStatusDesc(caseheadEntity.getCaseStatus())%></td>
           <td class="resultFont" width="<%=dataWidth[4]%>"><%=showData.CheckNull(CfhdCaseHead.getServerityDesc(caseheadEntity.getSeverity().toString()))%></td>
     </tr>         
         <%  }//end for
               }//end else  style="border-bottom: solid 2px #FF8C00;" 
         %>     
       <tr> <td colspan="2"style="border-top: 2px solid #FF8C00;  ">&nbsp;</td>
        <td colspan="3"style="border-top: 2px solid #FF8C00; text-align: right;" align="right">  
                 <table border="0" align="center" width="80%"  cellpadding="0" cellspacing="0">
                 <tr > <td nowrap="nowrap" width="*" class="TotalByCaseTyephaveline">Total by Case Type </td><td nowrap="nowrap" width="10"  class="TotalByCaseTyephaveline"><%=dataVec.size()%></td><td nowrap="nowrap" width="20" class="TotalByCaseTyephaveline"> Cases</td> </tr>
                 </table>   </td>  </tr>
        
</table>
    
  <%
           }//end  if(P3.equals("true"))
        //==================================P4================================================      
        
        if(P4.equals("true")){
          Vector    dataVec = reportManage.listCaseByTypeAndStatus(countrySelected,CfhdCaseHead.CASE_SERVICE_REQUEST,Status,format.parse(From),format.parse(To));
                          sumTotalbyCountry=sumTotalbyCountry+dataVec.size();
 %>
<table border="0" cellpadding="0"  cellspacing="0" bordercolor="purple" width="730">
      <tr>  <td colspan="5" class="TotalByCaseTyephaveline"> <span> Case Type : Service Request(P4) </span> </td>  </tr>
     <%   
    if (dataVec.size()==0){
    %>
    <tr >
    <td width="<%=dataWidth[0]%>">&nbsp; </td>
    <td width="<%=dataWidth[1]%>">&nbsp; </td>
    <td width="<%=dataWidth[2]%>">&nbsp; </td>
    <td width="<%=dataWidth[3]%>">&nbsp; </td>
    <td width="<%=dataWidth[4]%>" >&nbsp; </td>
    </tr>
    <%
    }
    else{
     for(int i=0;i<dataVec.size();i++){
            CfhdCaseHead          caseheadEntity        =(CfhdCaseHead) dataVec.elementAt(i);
       %>
        <tr>
           <td class="resultFont" width="<%=dataWidth[0]%>"><%=showData.CheckNull(caseheadEntity.getCaseId())%></td>
           <td class="resultFont" width="<%=dataWidth[1]%>"><%=showData.CheckNull(caseheadEntity.getSubject())%></td>
           <td class="resultFont" width="<%=dataWidth[2]%>"><%=showData.CheckNull(caseheadEntity.getOpenCaseDate(),"dd/MM/yy")%></td>
           <td class="resultFont" width="<%=dataWidth[3]%>"><%= CfhdCaseHead.getStatusDesc(caseheadEntity.getCaseStatus())%></td>
           <td class="resultFont" width="<%=dataWidth[4]%>"><%=showData.CheckNull(CfhdCaseHead.getServerityDesc(caseheadEntity.getSeverity().toString()))%></td>
     </tr>         
         <%  }//end for
               }//end else
         %>     
       <tr> <td colspan="2"style="border-top: 2px solid #FF8C00;  ">&nbsp;</td>
        <td colspan="3"style="border-top: 2px solid #FF8C00; text-align: right;" align="right">  
                 <table border="0" align="center" width="80%"  cellpadding="0" cellspacing="0">
                 <tr > <td nowrap="nowrap" width="*" class="TotalByCaseTyephaveline">Total by Case Type </td><td nowrap="nowrap" width="10"  class="TotalByCaseTyephaveline"><%=dataVec.size()%></td><td nowrap="nowrap" width="20" class="TotalByCaseTyephaveline"> Cases</td> </tr>
                 </table>   </td>  </tr>
</table>
    
<%
      } //end   if(P4.equals("true"))
%>
   <!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
        <%
          }catch(CFException cfe){
                System.out. println( cfe.getMessage());
                System.out. println( cfe.getDescription());
                session.setAttribute("hasError",MessageManager.getString(cfe.getMessage()));
//                cfe.printStackTrace();
        }
    %>
     
    <!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
   
   
   
   
   </td>  
</tr> 

 <tr>
  <td >  
   <table border="0" cellpadding="0"  cellspacing="0" bordercolor="yellow" width="730">
            <tr> <td colspan="2"style="border-bottom: 3px solid  black;  " width="304">&nbsp;</td>
        <td colspan="3"style="border-bottom: 3px solid black; text-align: right;" align="right">   
                 <table border="0" align="center" width="80%"  cellpadding="0" cellspacing="0">
                 <tr > <td nowrap="nowrap" width="*" class="TotalByCaseTyephavelineDoble" >Total by Country </td><td nowrap="nowrap" width="10"  class="TotalByCaseTyephavelineDoble"><%=sumTotalbyCountry%></td><td nowrap="nowrap" width="20" class="TotalByCaseTyephavelineDoble"> Cases</td> </tr>
                 </table>   </td>  </tr>
        
    </table>
      
    </td>  
</tr>
 <% 
                              sumGrandTotal=sumGrandTotal+sumTotalbyCountry;
  
 } //   for(int k=0;k<countryVector.size();k++){ 
 %>

<tr>
  <td >  
    
   <table border="0" cellpadding="0"  cellspacing="0" bordercolor="yellow" width="730">
            <tr> <td colspan="2"style="border-bottom: 0px solid  black;  " width="304">&nbsp;</td>
        <td colspan="3"style="border-bottom: 0px solid black; text-align: right;" align="right">  
                 <table border="0" align="center" width="80%"  cellpadding="0" cellspacing="0">
                 <tr > <td nowrap="nowrap" width="*" class="TotalByCaseTyephavelineDobleForGrandTotal"  >Grand  Total &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td nowrap="nowrap" width="10"  class="TotalByCaseTyephavelineDobleForGrandTotal"><%=sumGrandTotal%></td><td nowrap="nowrap" width="20" class="TotalByCaseTyephavelineDobleForGrandTotal"> Cases</td> </tr>
                 </table>   </td>  </tr>
    </table>
      
    </td>  
</tr> 

 </table>    

    
        </FORM>
    </DIV>
    </td>
  </tr>
   <!-----------------------------------END  DISPLAY TAG-----------------------------------------------> 
  
</table>
 <!-----------------------------------END  TABLE-----------------------------------------------> 
  

<script type="text/javascript" src="../script/criticalHilight.js"></script>

  </body>
</html>
